package com.example.edianzu.somur.api;

import com.example.edianzu.somur.module.mine.bean.BoundSample;
import com.example.edianzu.somur.module.mine.bean.RevisePassword;
import com.example.edianzu.somur.module.mine.bean.SampleList;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * author：风不会停息 on 2017/7/21 14:23
 * mailbox：yh131412hys@163.com
 * project：Somur
 * tel：13295355900
 * describe：
 */

public interface MineService {

    @FormUrlEncoded
    @POST("saas_service/app/updatePassword.json")
    Observable<RevisePassword> setModifyPassword(@FieldMap Map<String,String> fields);

    /*hashMap.put("sample_sn", sample_sn);
                            hashMap.put("member_id", member_id + "");*/
    @GET("saas_service/user_new/bindingSample.json")
    Observable<BoundSample> getBoundSample(@Query("sample_sn") String sample_sn,@Query("member_id") String member_id);

    /*hashMap.put("member_id", member_id + "");*/
    @POST("saas_service/app/getSampleList.json")
    Observable<SampleList> getSampleList(@Query("member_id") String member_id);
}
